package com.yu1996.gulimall.gulimall.auth.feign;

import com.yu1996.common.utils.R;
import com.yu1996.gulimall.gulimall.auth.vo.UserLoginVo;
import com.yu1996.gulimall.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {

  /** 登录 */
  @PostMapping("/member/member/login")
  R login(@RequestBody UserLoginVo userLoginVo);

  /** 注册 */
  @PostMapping("/member/member/regist")
  R regist(@RequestBody UserRegisterVo userRegisterVo);
}
